package com.stooscloud.provider.service;

import com.stooscloud.provider.service.hystrix.GeoFeignApiHystrix;
import feign.Headers;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.Map;

@FeignClient(url ="${stooscloud.geo.url}",fallback = GeoFeignApiHystrix.class,name = "Geo")
public interface GeoFeignApi {

    @PostMapping(value = "/civp/getview/api/o/login",consumes = "application/x-www-form-urlencoded")
    @Headers("Content-Type: application/x-www-form-urlencoded")
    String login(Map<String, ?> formParams);

    @PostMapping(value = "/civp/getview/api/u/queryUnify",consumes = "application/x-www-form-urlencoded")
    @Headers("Content-Type: application/x-www-form-urlencoded")
    String queryUnify(Map<String, ?> formParams);

}
